const http = uni.$u.http

// header: {
// 	'content-type': 'application/x-www-form-urlencoded'
// }

import {
	handleParams
} from "@/utils/http/tool"

/**
 * @description 获取用户信息
 * @param {Object}        params 参数对象
 * @param {Number|String} params[userId] 用户id
 */
export const getUserInfo = (params, config = {}) => http.post(`/weChatAppUser/selectinformation`, params, handleParams(config))

/**
 * @description 修改用户信息
 * @param {Object}        params 参数对象
 * @param {Number|String} params[userId] 用户id
 */
export const editUserInfo = (params, config = {}) => http.post(`/weChatAppUser/updateinformation`, params, handleParams(config))
